"""
@Author : 合肥一元数智教育科技有限公司
@Date :  2025/7/7 11:03
@Description : 

"""
import time

import requests
from fake_useragent import UserAgent

for i in range(1, 6):
    url = f'http://www.daimg.com/photo/tech/list_68_{i}.html'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36'
    }
    res = requests.get(url, headers=headers)
    time.sleep(2)
    html = res.content.decode('gbk')
    with open(f'./images/大图{i}.html', 'w', encoding='gbk') as f:
        f.write(html)
